package com.hyt.it.ogt.log.interceptor.constants;

/**
 * @author 朱振宇
 * @since 2023-02-14
 */
public class LogCommonConstants {
    //HTTP请求头字段
    public static final String TRACE_ID_HEADER = "X-Trace-Id";
    public static final String SPAN_ID_HEADER = "X-Span-Id";

    //Logback参数
    public static final String SLF4J_TRACE_ID = "X-TraceId";
    public static final String SLF4j_SPAN_ID = "X-SpanId";
    public static final String SLF4j_REQUEST_URI = "X-RequestUri";
    public static final String SLF4j_METHOD_NAME = "X-MethodName";
    public static final String SLF4j_REQUEST_BODY = "X-RequestBody";

    public static final String ROOT_SPAN_ID = "0";
}
